#ifndef TYPEDEF_H
#define TYPEDEF_H

#include <string>
#include<QString>
#include <QDebug>
#include<cstdint>

#define TCPPort 13531
#define UDPPort 13532

typedef int32_t INT32;
typedef uint32_t UINT32;
typedef uint64_t FSIZE;

//定义一个宏用来输出调试信息
#define QDEBUG_FILE_FUNC qDebug() << QString("%1:%2").arg(__FILE__).arg(__func__) << "-> "

enum NETPROTOCOL:UINT32{
    SCAN_MESSAGE_REQ,
    SCAN_MESSAGE_ANS,
    STRING_MESSAGE,
    FILE_MESSAGE_REQ,
    FILE_MESSAGE_ANS,
    FILE_DATA
};


#endif // TYPEDEF_H
